import torch


class Processor:
    def __init__(self, id):
        self.id = id
        self.compute_ability = 0
        self.load = 0

    def get_feature(self) -> torch.Tensor:
        return [self.compute_ability, self.load]


if __name__ == '__main__':
    t1 = Processor()
    t2 = Processor()
    t2.load = 3
    f1 = t1.get_feature()
    f2 = t2.get_feature()
    print(torch.vstack([f1, f2]))
